<template>
  <div class="headerNav">
    <van-nav-bar v-show="isShow" fixed style="background-color: #ffffff;" :title="$route.meta.title">
      <template #left>
        <div v-show="$route.path!='/home'" @click="$router.back()">
          <van-icon name="arrow-left" size="18"/>
          返回
        </div>
      </template>
      <template #right>
        <div>张三丰</div>
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  name: "headerNav",
  computed: {
    isShow() {
      return !this.$isMobile();
    },
  }
}
</script>

<style>
</style>
